<template>
  <div>
    <TabBar>
      <TabBarItem link="/home">
        <template #item_icon>
          <img src="~@/assets/images/tabBar/home.svg" alt="" />
        </template>
        <template #item_icon-active>
          <img src="~@/assets/images/tabBar/home_active.svg" alt="" />
        </template>
        <template #item_text>主页</template>
      </TabBarItem>
      <TabBarItem link="/category">
        <template #item_icon>
          <img src="~@/assets/images/tabBar/category.svg" alt="" />
        </template>
        <template #item_icon-active>
          <img src="~@/assets/images/tabBar/category_active.svg" alt="" />
        </template>
        <template #item_text>分类</template>
      </TabBarItem>
      <TabBarItem link="/cart">
        <template #item_icon>
          <img src="~@/assets/images/tabBar/shopcart.svg" alt="" />
        </template>
        <template #item_icon-active>
          <img src="~@/assets/images/tabBar/shopcart_active.svg" alt="" />
        </template>
        <template #item_text>商城</template>
      </TabBarItem>
      <TabBarItem link="/profile">
        <template #item_icon>
          <img src="~@/assets/images/tabBar/profile.svg" alt="" />
        </template>
        <template #item_icon-active>
          <img src="~@/assets/images/tabBar/profile_active.svg" alt="" />
        </template>
        <template #item_text>我的</template>
      </TabBarItem>
    </TabBar>
  </div>
</template>

<script>
import TabBar from '@/components/common/TabBar'
import TabBarItem from '@/components/common/TabBar/Item'

export default {
  name: 'MainTabBar',
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style lang="scss" scoped>
</style>
